package com.bdqn.rooms.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jack
 * @since 2019-05-21
 */
public class Roomorder extends Model<Roomorder> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "rorderid", type = IdType.AUTO)
    private Integer rorderid;
    /**
     * 房间id
     */
    private Integer roomId;
    /**
     * 商家id
     */
    private Integer ruserId;
    /**
     * 用户id
     */
    private Integer staffId;
    /**
     * 订单开始时间
     */
    private Date readytime;
    /**
     * 订单状态0为未支付，默认为0
     */
    private Integer orderstate;


    public Integer getRorderid() {
        return rorderid;
    }

    public void setRorderid(Integer rorderid) {
        this.rorderid = rorderid;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Integer getRuserId() {
        return ruserId;
    }

    public void setRuserId(Integer ruserId) {
        this.ruserId = ruserId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public Date getReadytime() {
        return readytime;
    }

    public void setReadytime(Date readytime) {
        this.readytime = readytime;
    }

    public Integer getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(Integer orderstate) {
        this.orderstate = orderstate;
    }

    @Override
    protected Serializable pkVal() {
        return this.rorderid;
    }

    @Override
    public String toString() {
        return "Roomorder{" +
        ", rorderid=" + rorderid +
        ", roomId=" + roomId +
        ", ruserId=" + ruserId +
        ", staffId=" + staffId +
        ", readytime=" + readytime +
        ", orderstate=" + orderstate +
        "}";
    }
}
